/**
 * 响应对象
 * new Response(返回数据, 状态码, 错误对象, 错误提示)
 */
class Response {
  constructor(result, code, error, remark) {
    this.result = result;
    this.code = code
    this.error = error;
    this.remark = remark;
    return this;
  }
  toString() {
    return 'Response对象中的数据: ' + JSON.stringify(this);
  }
}

module.exports = Response;